package com.connection.second.wallpaper.mapper;

import java.util.List;

import com.connection.second.common.annotation.AutoFill;
import com.connection.second.common.enums.OperationType;
import com.connection.second.wallpaper.domain.entity.PaperWall;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * wallMapper接口
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@Mapper
public interface PaperWallMapper 
{
    /**
     * 查询wall
     * 
     * @param id wall主键
     * @return wall
     */
    public PaperWall selectPaperWallById(Long id);

    /**
     * 查询wall列表
     * 
     * @param paperWall wall
     * @return wall集合
     */
    public List<PaperWall> selectPaperWallList(PaperWall paperWall);

    /**
     * 新增wall
     * 
     * @param paperWall wall
     * @return 结果
     */
    @AutoFill(value = OperationType.INSERT)
    public int insertPaperWall(PaperWall paperWall);

    /**
     * 修改wall
     * 
     * @param paperWall wall
     * @return 结果
     */
    @AutoFill(value = OperationType.UPDATE)
    public int updatePaperWall(PaperWall paperWall);

    /**
     * 删除wall
     * 
     * @param id wall主键
     * @return 结果
     */
    public int deletePaperWallById(Long id);

    /**
     * 批量删除wall
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePaperWallByIds(Long[] ids);

}
